package com.bs.service.impl;

import java.util.List;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.bs.bean.Unit;
import com.bs.dao.UnitDAO;
import com.bs.service.UnitService;

public class UnitServiceImpl extends SqlMapClientDaoSupport implements UnitService {

private UnitDAO unitDao;
	
	
	
	public UnitDAO getUnitDao() {
		return unitDao;
	}

	public void setUnitDao(UnitDAO unitDao) {
		this.unitDao = unitDao;
	}

	@Override
	public void save(Unit unit) {
		this.unitDao.save(unit);
	}

	@Override
	public int batchDelete(String ids){
		return this.unitDao.batchDelete(ids);
	}

	@Override
	public List<Unit> query(Unit unit) {
		return this.unitDao.query(unit);
	}
	
	
}
